﻿using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;



namespace Keyboard
{
    
    class Keyboard
    {
        private static KeyboardState State;
        //key pressees 
        public static bool LeftKey()
        {
            State = Microsoft.Xna.Framework.Input.Keyboard.GetState();

            if (State.IsKeyDown(Keys.A))
            {
                return true;
            }

            return false;
        }
        public static bool RightKey()
        {
            State = Microsoft.Xna.Framework.Input.Keyboard.GetState();

            if (State.IsKeyDown(Keys.D))
            {
                return true;
            }

            return false;
        }
        public static bool UpKey()
        {
            State = Microsoft.Xna.Framework.Input.Keyboard.GetState();

            if (State.IsKeyDown(Keys.W))
            {
                return true;
            }

            return false;
        }
        public static bool DownKey()
        {
            State = Microsoft.Xna.Framework.Input.Keyboard.GetState();

            if (State.IsKeyDown(Keys.S))
            {
                return true;
            }

            return false;
        }


    }
}
